package com.mightybird.designpattern.structural.decorator.decorators;

import com.mightybird.designpattern.structural.decorator.Decorator;
import com.mightybird.designpattern.structural.decorator.Component;

public class ReverseEncryptor extends Decorator {
    public ReverseEncryptor(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        super.operation();
        this.encrypt();
    }

    private void encrypt() {
        System.out.println("_reversed");
    }


}
